package com.yjt.auth.common.util;

import org.apache.commons.codec.digest.DigestUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class YJTAuthUtil {

	private static Logger LOG = LoggerFactory.getLogger(YJTAuthUtil.class);
	public static String threeTimesMD5ToPassword(String password) {
		for(int i=0; i<3; i++) {
			password = DigestUtils.md5Hex(password);
		}
		return password;
	}
	
	public static void main(String[] args) {
		System.out.println(threeTimesMD5ToPassword("123456"));
	}
}
